<?php
  include_once('../conn.php');

  // 申请列表更新
  $id = $_POST['id'];
  
  $apply_num = $_POST['apply_num'];

  $sql = "update apply set 
    apply_num = $apply_num
    where id = $id
    ";
  // echo $sql;
  $result = mysqli_query($conn, $sql);
  if($result) {
    alert('修改成功', 'me_apply_list.php');
  } else {
    alert('修改失败', 'me_apply_list.php');
  }

  mysqli_close($conn);
?>